// const Propaganda = () => import(/* webpackChunkName: "propaganda-page" */ '@views/propaganda/index');
// const video = () => import(/* webpackChunkName: "propaganda-page" */ '@views/propaganda/pages/video');
// const recommend = () => import(/* webpackChunkName: "propaganda-page" */ '@views/propaganda/pages/recommend');
// const news = () => import(/* webpackChunkName: "propaganda-page" */ '@views/propaganda/pages/news');
// const album = () => import(/* webpackChunkName: "propaganda-page" */ '@views/propaganda/pages/album');
// const love = () => import(/* webpackChunkName: "propaganda-page" */ '@views/propaganda/pages/love');
// const information = () => import(/* webpackChunkName: "propaganda-page" */ '@views/propaganda/pages/details/information');
// const search = () => import(/* webpackChunkName: "propaganda-page" */ '@views/propaganda/pages/details/search');
// const newsDetails = () => import(/* webpackChunkName: "propaganda-page" */ '@views/propaganda/pages/details/newsDetails');
// const albumDetails = () => import(/* webpackChunkName: "propaganda-page" */ '@views/propaganda/pages/details/albumDetails');
// const releaseAlbum = () => import(/* webpackChunkName: "propaganda-page" */ '@views/propaganda/pages/details/releaseAlbum');
// const loveDetails = () => import(/* webpackChunkName: "propaganda-page" */ '@views/propaganda/pages/details/loveDetails');
// const releaseLove = () => import(/* webpackChunkName: "propaganda-page" */ '@views/propaganda/pages/details/releaseLove');
// const videoList = () => import(/* webpackChunkName: "propaganda-page" */ '@views/propaganda/pages/videoList/videoList');
// const fabuVideo = () => import(/* webpackChunkName: "propaganda-page" */ '@views/propaganda/pages/videoList/fabuVideo');
//resolve => require(['@views/propaganda/index'], resolve)
//@views/propaganda/pages/videoList/fabuVideo
const Propaganda = resolve => require(['@views/propaganda/index'], resolve);
const video = resolve => require(['@views/propaganda/pages/video'], resolve);
const recommend = resolve => require(['@views/propaganda/pages/recommend'], resolve);
const news = resolve => require(['@views/propaganda/pages/news'], resolve);
const album = resolve => require(['@views/propaganda/pages/album'], resolve);
const love= resolve => require(['@views/propaganda/pages/love'], resolve);
const information= resolve => require(['@views/propaganda/pages/details/information'], resolve);
const search = resolve => require(['@views/propaganda/pages/details/search'], resolve);
const newsDetails= resolve => require(['@views/propaganda/pages/details/newsDetails'], resolve);
const albumDetails = resolve => require(['@views/propaganda/pages/details/albumDetails'], resolve);
const releaseAlbum = resolve => require(['@views/propaganda/pages/details/releaseAlbum'], resolve);
const loveDetails = resolve => require(['@views/propaganda/pages/details/loveDetails'], resolve);
const releaseLove= resolve => require(['@views/propaganda/pages/details/releaseLove'], resolve);
const videoList = resolve => require(['@views/propaganda/pages/videoList/videoList'], resolve);
const fabuVideo = resolve => require(['@views/propaganda/pages/videoList/fabuVideo'], resolve);
const videoInfo= resolve => require(['@views/propaganda/pages/videoList/videoInfo'], resolve);
const PROPAGANDA_ROUTERS = [
    //宣传
    {
        path: '/propaganda',
        name: 'propaganda',
        component: Propaganda,
        meta: {requireAuth: true, index: 0, navShow: true, title: "宣传"},
        children: [
            {
                path: '/',
                component: recommend,
                meta: {requireAuth: true, index: 0, navShow: true, title: "宣传"},
            },
            {
                path: '/propaganda/news',
                // redirect:'/propaganda/news',
                component: news,
                meta: {requireAuth: false, index: 1, navShow: true, title: "党建新闻"},
            },
            {
                path: '/propaganda/video',
                name: 'video',
                component: video,
                meta: {requireAuth: false, index: 1, navShow: true, title: "党建微视"},
            },
            {
                path: '/propaganda/album',
                name: 'album',
                component: album,
                meta: {requireAuth: false, index: 1, navShow: true, title: "党建相册"},
            },
            {
                path: '/propaganda/love',
                name: 'love',
                component: love,
                meta: {requireAuth: false, index: 1, navShow: true, title: "一颗红心"},
            },
        ]
    },
    {
        path: '/propaganda/details/information',
        name: 'information',
        component: information,
        meta: {requireAuth: false, index: 2, navShow: false, title: "所有消息"},
    },
    {
        path: '/propaganda/details/search',
        name: 'search',
        component: search,
        meta: {requireAuth: false, index: 2, navShow: false, title: "搜索"},
    },
    {
        path: '/propaganda/details/albumDetails',
        name: 'albumDetails',
        component: albumDetails,
        meta: {requireAuth: false, index: 2, navShow: false, title: "相册详情"},
    },

    {
        path: '/propaganda/details/loveDetails',
        name: 'loveDetails',
        component: loveDetails,
        meta: {requireAuth: false, index: 2, navShow: false, title: "一颗红心详情"},
    },
    {
        path: '/propaganda/details/releaseAlbum',
        name: 'releaseAlbum',
        component: releaseAlbum,
        meta: {requireAuth: false, index: 2, navShow: false, title: "发布相册"},
    },
    {
        path: '/propaganda/details/releaseLove',
        name: 'releaseLove',
        component: releaseLove,
        meta: {requireAuth: false, index: 2, navShow: false, title: "发布一颗红心"},
    },

    {
        path: '/propaganda/details/newsDetails',
        name: 'newsDetails',
        component: newsDetails,
        meta: {requireAuth: false, index: 2, navShow: false, title: "新闻详情"},
    },
    {
        path: '/propaganda/videoList/videoList',
        name: '视频详情',
        component: videoList,
        meta: {requireAuth: false, index: 2, navShow: false, title: "视频详情"},
    },
    {
        path: '/propaganda/videoList/videoInfo',
        name: '视频详情',
        component: videoInfo,
        meta: {requireAuth: false, index: 2, navShow: false, title: "视频详情"},
    },
    {
        path: '/propaganda/videoList/fabuVideo',
        name: '发布视频',
        component: fabuVideo,
        meta: {requireAuth: false, index: 2, navShow: false, title: "发布视频"},
    },

]

export default PROPAGANDA_ROUTERS
